<div class="panel panel-default">
	<div class="panel-heading">
	面包学
	</div>

	<div class="panel-body">
	<p class="text-right">
		<a class="btn btn-primary" href="<?php echo $this->createUrl('add'); ?>" >添加新单页</a>
	</p>
		<?php if(Yii::app()->user->hasFlash('success')): ?>
			<div class="alert alert-success">
			<?php echo Yii::app()->user->getFlash('success'); ?>
			</div>
		<?php endif; ?>
		<table class="table">
			<thead>
				<tr>
					<th>ID</th>
					<th>标题</th>
					<th>URL标识</th>
					<th>模版</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($pages as $v): ?>
				<tr>
					<td><?php echo $v->id; ?></td>
					<td><?php echo $v->title; ?></td>
					<td><?php echo $v->name; ?></td>
					<td><?php echo $v->template; ?></td>
					<td>
						<a href="<?php echo $this->createUrl('edit', array('id'=>$v->id)); ?>">编辑</a>
						<a href="">删除</a>
					</td>
				</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	</div>
</div>